﻿using System.ServiceProcess;
using Matrix.MaKaYunShang.MaKaYunShangService.MaKaYunShangProccess;

namespace Matrix.MaKaYunShang.GfcService
{
    public partial class GfcAllService : ServiceBase
    {
        public OrderThreadMgr OrderThdMgr;

        public GfcAllService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            #region 订单信息发送线程
            OrderThdMgr = new OrderThreadMgr(true);
            OrderThdMgr.CreateOrderThreads();
            OrderThdMgr.StartThreads();
            #endregion

        }

        protected override void OnStop()
        {
            OrderThdMgr.StopThreads();
        }
    }
}
